/<template>
  <el-menu
    class="el-menu-vertical-demo"
    @open="handleOpen"
    @close="handleClose"
    background-color="#545c64"
    text-color="#fff"
    active-text-color="#ffd04b"
    :router="true"
  >
    <el-submenu index="1" default-active="1-1">
      <template slot="title">
        <i class="el-icon-user-solid"></i>
        <span>学生管理</span>
      </template>
      <el-menu-item index="/stuSystem/">学生列表</el-menu-item>
      <el-menu-item index="/stuSystem/addStu">新增学生</el-menu-item>
    </el-submenu>
    <el-submenu index="2">
      <template slot="title">
        <i class="el-icon-s-order"></i>
        <span>班级管理</span>
      </template>
      <el-menu-item index="/stuSystem/classList">班级列表</el-menu-item>
      <el-menu-item index="/stuSystem/addClass">新增班级</el-menu-item>
    </el-submenu>
    <el-submenu index="3">
      <template slot="title">
        <i class="el-icon-s-custom"></i>
        <span>教师管理</span>
      </template>
      <el-menu-item index="/stuSystem/teacherList">教师列表</el-menu-item>
      <el-menu-item index="/stuSystem/addTeacher">新增教师</el-menu-item>
    </el-submenu>
    <el-menu-item index="/stuSystem/other">
      <template slot="title">
        <i class="el-icon-s-custom"></i>
        <span>开心一下</span>
      </template>
    </el-menu-item>    
  </el-menu>
</template>

<script>
export default {
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    },
  },
};
</script>

<style>
</style>